package com.haitai.solr.resp;

/**
 * 错误代码
 */
public enum StateCodeDesc {

    SYSTEM_ERROR("9999", "系统错误"),
    PARAM_ERROR("9001", "参数错误"),
    DATA_NONE("1001", "数据不存在"),
    FILE_UPLOAD("1002", "文件上传错误"),
    FILE_DOWNLOAD("1003", "文件下载错误"),
    FILE_ERROR("1004", "文件错误"),
    FILE_STORAGE_ERROR("1005", "文件存储错误"),
    FILE_NONE_ERROR("1006", "文件不存在或参数传入有误"),
    FILE_DELETE_ERROR("1007", "文件删除失败");

    private String code;

    private String codeDesc;

    StateCodeDesc(String code, String codeDesc) {
        this.code = code;
        this.codeDesc = codeDesc;
    }

    public String getCode() {
        return code;
    }

    public String getCodeDesc() {
        return codeDesc;
    }
}
